import request from '@/utils/request'

// 附件上传--根据路径
export function uploadFileByPaths(data) {
  return request({
    url: process.env.VUE_APP_KSTB_ROUTE_PATH + '/kstb/common/uploadFileByPaths',
    method: 'POST',
    data:data
  })
}

// 附件上传--根据路径
export function downFileByoid(oid) {
  return request({
    url:  process.env.VUE_APP_KSTB_ROUTE_PATH + "/case/caseAtta/preview?attaOid="+ oid,
    method: 'GET'
  })
}

//根据oid查询附件信息
export function queryCaseAttaByOid(oid) {
  return request({
    url:  process.env.VUE_APP_KSTB_ROUTE_PATH + "/case/caseAtta/queryCaseAttaByOid?attaOid="+ oid,
    method: 'GET'
  })
}